package com.sgcc.cy.job;


import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author admin
 * 汇总统计数据入库根据每日时间
 */
@Component
public class TabulateStatisticsJob {

    private static final Logger logger = LoggerFactory.getLogger(TabulateStatisticsJob.class);

    /**
     * 汇总每日数据
     * @return
     */
    @XxlJob("getEveryDayData")
    public ReturnT<String> getEveryDayData(String params) {
        if (StringUtils.isEmpty(params)) {
            return new ReturnT<>(ReturnT.FAIL_CODE, "处理失败，参数不能为空！");
        }


        return new ReturnT<>(ReturnT.SUCCESS_CODE, "处理成功");
    }


}

